#include "stdafx.h"
#include "FormData.h"


Form::Form()
:flvl(0)
{
	for (int i=0; i<FORM_SLOT_CNT; i++)
	{
		fslot[i] = 0;
	}
}

void	Form::set(const short& vflvl, const short* vfslot)
{
	flvl = vflvl;
	for (int i=0; i<FORM_SLOT_CNT; i++)
	{
		fslot[i] = vfslot[i];
	}
}

void	Form::set(const short& idx, const short& rid)
{
	if (idx>0 && idx<=FORM_SLOT_CNT)
	{
		fslot[idx-1] = rid;
	}
}

short	Form::get(const short& idx)
{
	if (idx>0 && idx<=FORM_SLOT_CNT)
	{
		return fslot[idx-1];
	}
	else
	{
		return 0;
	}
}

Forms::Forms()
:ftype(0)
{
}